package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.GoodsCount;
import com.atguigu.jxc.entity.ReturnList;

import java.util.List;

public interface ReturnListGoodsService {

    /**
     * 退货单保存
     * @param returnList
     * @param returnListGoodsStr
     * @return
     */
    ServiceVO save(ReturnList returnList, String returnListGoodsStr);

    /**
     * 查询退货单
     * @param returnNumber
     * @param supplierId
     * @param state
     * @param sTime
     * @param eTime
     * @return
     */
    List<ReturnList> list(String returnNumber, Integer supplierId, Integer state, String sTime, String eTime);

    /**
     * 删除退货单和退货单中的商品
     * @param returnListId
     */
    void delete(Integer returnListId);

    /**
     * 退货统计
     * @param sTime
     * @param eTime
     * @param goodsTypeId
     * @param codeOrName
     * @return
     */
    List<GoodsCount> count(String sTime, String eTime, Integer goodsTypeId, String codeOrName);
}
